﻿#include "UBaseNode.h"

UBaseNode::UBaseNode(CBaseNode *pNode, QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
	ui.label->setScaledContents(true);
	ui.label_9->setScaledContents(true);
	ui.label_10->setScaledContents(true);
	ui.label_11->setScaledContents(true);
	ui.label_12->setScaledContents(true);
	ui.label_13->setScaledContents(true);
	m_pNode = pNode;
	ui.lineEdit_RobName->setText(pNode->getName());
	CBaseNode *pNodeParent = pNode->getParent();
	if (pNodeParent != NULL)
	{
		ui.lineEdit_7->setText(pNodeParent->getName());
	}
	else
	{
		ui.lineEdit_7->setText(pNode->getName());
	}
}

UBaseNode::~UBaseNode()
{}
